import matplotlib.pyplot as plt
import numpy as np

if __name__ == '__main__':
	x = np.loadtxt('../data/pr_NY.csv')[:20]  # 降水量 # Y

	y = (np.fft.fftshift(np.fft.fft(x)))
	iy = np.abs(np.fft.ifft(y))
	plt.plot(x, label='original')
	plt.plot(iy, label='fft')
	plt.legend()
	plt.show()
